﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MvcApplication.Common
{
    [Serializable]
    public class BizException : Exception
    {
        public int ErrorCode;
        public string ErrorMessage;

        public BizException() { }

        public BizException(string errorMessage)
        {
            ErrorMessage = errorMessage;
        }

        public BizException(int errorCode, string errorMessage)
        {
            ErrorCode = errorCode;
            ErrorMessage = errorMessage;
        }
    }
}
